<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        console.log("位置1")
    </script>
</head>
<body>

    <script src="test.js"></script>
    <a href="javascript:('位置3')">点击</a>

</body>
</html>